<style>
    body{
        background-color: #f9f9f9;
    }
    .xh-form .btn{
        margin-right: 0px;
    }
    .textbox-text .textbox-prompt{
        color: white;
    }
    .form-control[readonly]{
        background-color: white;
    }
    .tree-folder{
        clear: both;
        background: none;
    }
    .tree-folder-open{
        clear: both;
        background: none;
    }
    .fa{
        margin-top: 3px;
    }
    .tree-file{
        clear: both;
        background: none;
    }
    .combo{
        border-radius:4px
    }

</style>

<table style="width: 100%;height: 100%">
    <tbody>
    <tr>
        <td style="width: 600px;" valign="top">
            <table id="table" class="table table-hover" style="width: 100%">
                <tr class="info">
                    <th style="width: 150px">名称</th>
                    <th style="width: 300px">内容</th>
                    <th style="width: 150px">操作</th>
                </tr>
                {% if flag %}
                    {% for index,row in infos %}
                        <tr>
                            <td style="width: 150px">{{ row['sTPName'] }}</td>
                            <td style="width: 300px">{{ row['mTPContent'] }}</td>
                            <td style="width: 150px"><a  style="margin-right: 5px"  class="btn btn-primary btn-xs del pull-right"  tpId="{{ row['iTPId'] }}">删除</a><a  class="btn btn-primary btn-xs edit pull-right" style="margin-right: 5px" tpId="{{ row['iTPId'] }}">编辑</a></td>
                        </tr>
                    {% endfor %}
                {% endif %}
            </table>
        </td>
        <td>
            <form id="xh_form" class="xh-form"  method="post"    style="margin-left: 20px;height: 100%">
                <div class="xh-area-form">
                    <table style="width: 100%">
                        <tr >
                            <input type="hidden" name="iTPId" />
                            <input type="hidden" name="iTPType" value="1" />
                            <td>模板名称</td>
                            <td><input  type="text"  name="sTPName" /></td>
                        </tr>
                        <tr>
                            <td><label>内容</label></td>
                            <td colspan="2"><textarea rows="6" name="mTPContent"></textarea></td>
                        </tr>
                        <tr>
                            <td colspan="2"><a id="reset" class="btn btn-danger pull-right" style="margin-right: 20px">清除</a><a id="save" class="btn btn-success pull-right" style="margin-right: 5px">保存</a></td>
                        </tr>
                    </table>
                </div>
            </form>
        </td>
    </tr>
    </tbody>
</table>